package model

import "github.com/danfwing/sd-project/pkg/base"

type Role struct {
	base.Model  `xorm:"extends"`
	Name        string `xorm:"varchar(50) unique notnull comment('角色名称')"`
	Description string `xorm:"varchar(255) comment('角色描述')"`
}

func (r *Role) TableName() string {
	return "roles"
}
